from rest_framework.serializers import *

from .models import *


class NewsSer(ModelSerializer):
    class Meta:
        model = News
        fields = '__all__'


class UserSer(ModelSerializer):
    class Meta:
        model = User
        fields = '__all__'


class AddressSer(ModelSerializer):
    class Meta:
        model = Address
        fields = '__all__'


class AreaSer(ModelSerializer):
    class Meta:
        model = Area
        fields = '__all__'


class CateSer(ModelSerializer):
    class Meta:
        model = Category
        fields = '__all__'


class GoodsSer(ModelSerializer):
    class Meta:
        model = Goods
        fields = '__all__'
